package com.example.dto.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @Description: 分页
 * @Auther: Swain
 * @Date: 2021/1/11 21:59
 * @Version 1.0.0
 */
@Data
@ApiModel("分页")
public class PageDTO {

    @ApiModelProperty("当前页")
    @NotNull(message = "当前页不能为空", groups = findListPage.class)
    private int pageNum;
    @ApiModelProperty("每页大小")
    @NotNull(message = "每页大小不能为空", groups = findListPage.class)
    private int pageSize;


    public interface findListPage {

    }

}
